package com.niren.relay.common.portocol.AT;

public class AtCmdGenerater {
	/**
	 * Read Id
	 * */
	public static String GetQueryIdCmd() {
		return "AT+WID=?\r\n";
	}

	/**
	 * 获取查询MAC的命令
	 * */
	public static String GetQueryMacCmd(){
		return "AT+MAC=?\r\n";
	}
	
	/**
	 * control cmd
	 * */
	public static String GetCtlCmd(int ch, int state) {
		return "AT+STACH" + ch + "=" + state + "\r\n";
	}

	public static String GetOutStateCmd(int ch ){
		return "AT+STACH" + ch + "=?\r\n";
	}

	public static String GetInStateCmd(int ch){
		return "AT+OCCH" + ch + "=?\r\n";
	}

	/**
	 * AT用于软件下发的AT心跳指令
	 * */
	public static String GetSendAt(){
		return "AT\r\n";
	}

	/**
	 * 对AT的应答
	 * */
	public static String GetAtAck(){
		return "AT+ACK\r\n";
	}
}
